package com.ll.app.api.jj;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ll.app.api.jj.enums.JJProjectTypeEnum;
import com.ll.base.enums.RelativesTypeEnum;
import com.ll.base.enums.SexEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class JJProjectRecordDTO {

    @NotNull(message = "钉钉用户id 不能为null")
    @ApiModelProperty(value = "钉钉用户id", example = "1844652736858142")
    private String cDingUid;

    @NotNull(message = "说明 不能为null")
    @ApiModelProperty(value = "说明", example = "审批通过")
    private String remark;

    @NotNull(message = "审批状态 不能为null")
    @ApiModelProperty(value = "审批状态", example = "审批通过")
    private Boolean status;

    @NotNull(message = "名称 不能为null")
    @ApiModelProperty(value = "名称", example = "张三")
    private String name;

    @NotNull(message = "操作时间 不能为null")
    @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "操作时间", example = "1844652736858142")
    private Date ctime;
}
